<?php

require_once 'global.php';


$default_uri=array('index','view','modify','create','remove');


if(in_array($_POST['action'], $default_uri)){
    $uri ='products/'.$_POST['action'];
}
elseif(in_array($_GET['uri'], $default_uri)){
    $uri ='products/'.$_GET['uri'];
}else{
    $uri ='products/index';
}



require_once 'index.php';
?>